from .models import *
from rest_framework import serializers


class CartSer(serializers.ModelSerializer):
    class Meta:
        model = Cart
        fields = "__all__"


class FenSer(serializers.ModelSerializer):
    class Meta:
        model = fenye
        fields = "__all__"


class ZhanSer(serializers.ModelSerializer):
    class Meta:
        model = Books
        fields = "__all__"


class ShangSer(serializers.ModelSerializer):
    class Meta:
        model = Shangpin
        fields = "__all__"